const wdio = require("webdriverio");

const opts = {
    port:4723,
    desiredCapabilities : {
        platformName: "Android",
        platformVersion: "7.0",
        deviceName: "xiaomi",
        app: "F:\\测试平台\\appiumtest\\appiumnode\\apps\\yyyq.apk", //这里要放app包的路径
        automationName: "UiAutomator2",
        appActivity : "com.win.huo.view.activity.SplashActivity",//com.win.huo.view.activity.SplashActivity
        appPackage: "com.win.wallet",
    }
}
    const client = wdio.remote(opts);
    client
        .then(()=>{
            console.log("=========11=============")
        })
        .init() .then(()=>{
        console.log("=========22=============")
    })
       // .startActivity()
   .then(()=>{
        console.log("==========33============")
    })
        ;

